//
//  WeHomePageRecommendedCell.m
//  WeGalaxy
//
//  Created by Zheng on 2017/7/18.
//  Copyright © 2017年 Zheng. All rights reserved.
//

#import "WeHomePageRecommendedCell.h"

@implementation WeHomePageRecommendedCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (!self ) return nil;
    
    self.selectionStyle = UITableViewCellSeparatorStyleNone;
    self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    
    [self.contentView addSubview:self.titleLbl];
    [self.contentView addSubview:self.contentLbl];
    
    [_titleLbl mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(12);
        make.centerY.equalTo(self);
    }];
    
    [_contentLbl mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_titleLbl.mas_right).offset(30);
        make.centerY.equalTo(self);
    }];
    
    return self;
}


- (UILabel *)titleLbl {
    if (!_titleLbl) {
        _titleLbl = [[UILabel alloc] init];
        _titleLbl.text = @"精品推荐";
        _titleLbl.font = kCX_FONT(10);
    }
    return _titleLbl;
}


- (UILabel *)contentLbl {
    if (!_contentLbl) {
        _contentLbl = [[UILabel alloc] init];
        _contentLbl.text = @"各类植入小特色";
        _contentLbl.textColor = [UIColor lightGrayColor];
        _contentLbl.font = kCX_FONT(8);
    }
    return _contentLbl;
}


@end
